package cn.huiyunche.base.service.vo;

import org.hibernate.validator.constraints.Email;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class UserUpdateVo implements Serializable {

    /**
     * @fieldName: serialVersionUID
     * @fieldType: long
     * @Description: TODO
     */
    private static final long serialVersionUID = -66349687268396383L;

    private Long id;

    // @NotBlank(message="用户名不能为空")
    private String name;

    // @Length(min=6,message="密码不能少于6位")
    // private String pwd;

    // @NotBlank(message="邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String email;

    // @NotBlank(message="性别不能为空")
    private String gender;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    // @NotBlank(message="图像不能为空!")
    private String pic;

    private String realname;

    private Date updateTime;

    private String openid;

    private String identity;

    private String positivePic;

    private String reversePic;

    private String companycode;

    private String invitedcode;

    private Long userLevel;

    private Integer userIntegral;

    private Integer userIntegralSum;

    private String phone;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getPositivePic() {
        return positivePic;
    }

    public void setPositivePic(String positivePic) {
        this.positivePic = positivePic;
    }

    public String getReversePic() {
        return reversePic;
    }

    public void setReversePic(String reversePic) {
        this.reversePic = reversePic;
    }

    public String getCompanycode() {
        return companycode;
    }

    public void setCompanycode(String companycode) {
        this.companycode = companycode;
    }

    public String getInvitedcode() {
        return invitedcode;
    }

    public void setInvitedcode(String invitedcode) {
        this.invitedcode = invitedcode;
    }

    public Long getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Long userLevel) {
        this.userLevel = userLevel;
    }

    public Integer getUserIntegral() {
        return userIntegral;
    }

    public void setUserIntegral(Integer userIntegral) {
        this.userIntegral = userIntegral;
    }

    public Integer getUserIntegralSum() {
        return userIntegralSum;
    }

    public void setUserIntegralSum(Integer userIntegralSum) {
        this.userIntegralSum = userIntegralSum;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "UserUpdateVo [id=" + id + ", name=" + name + ", email=" + email + ", gender=" + gender + ", birthday="
                + birthday + ", pic=" + pic + ", realname=" + realname + ", updateTime=" + updateTime + ", openid="
                + openid + ", identity=" + identity + ", positivePic=" + positivePic + ", reversePic=" + reversePic
                + ", companycode=" + companycode + ", invitedcode=" + invitedcode + ", userLevel=" + userLevel
                + ", userIntegral=" + userIntegral + ", userIntegralSum=" + userIntegralSum + ", phone=" + phone + "]";
    }

}